<?php return array (
  'base' => 
  array (
    'name' => 'invitation',
    'comment' => '请柬模板',
    'opera' => 
    array (
      'show' => 1,
      'store' => 1,
      'update' => 1,
      'destroy' => 1,
      'search' => 1,
      'filter' => 1,
      'page' => 1,
    ),
  ),
  'fields' => 
  array (
    'id' => 
    array (
      'name' => 'id',
      'null' => 'NO',
      'key' => 'PRI',
      'default' => NULL,
      'comment' => '喜帖ID',
      'type' => 'number',
      'length' => '11',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 0,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 0,
    ),
    'user_id' => 
    array (
      'name' => 'user_id',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '用户id',
      'type' => 'relate',
      'length' => '11',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
      'relate' => ["table"=>"user","field"=>"id","select"=>["name"],"comment"=>"用户"],
    ),
    'model_id' => 
    array (
      'name' => 'model_id',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '模板id',
      'type' => 'relate',
      'length' => '11',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
      'relate' => ["table"=>"model","field"=>"id","select"=>["name"],"comment"=>"模板"],
    ),
    'music_id' => 
    array (
      'name' => 'music_id',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '背景音乐id',
      'type' => 'relate',
      'length' => '11',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
      'relate' => ["table"=>"music","field"=>"id","select"=>["name"],"comment"=>"音乐"],
    ),
    'music_dir' => 
    array (
      'name' => 'music_dir',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '背景音乐地址',
      'type' => 'string',
      'length' => '200',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'head_dir' => 
    array (
      'name' => 'head_dir',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '头像地址',
      'type' => 'img',
      'length' => '200',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'video_dir' => 
    array (
      'name' => 'video_dir',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '婚礼现场VCR',
      'type' => 'file',
      'length' => '200',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'wedding_video_dir' => 
    array (
      'name' => 'wedding_video_dir',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '婚礼视频',
      'type' => 'file',
      'length' => '200',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'map_dir' => 
    array (
      'name' => 'map_dir',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '地图图片地址',
      'type' => 'string',
      'length' => '100',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'boy_name' => 
    array (
      'name' => 'boy_name',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '新郎姓名',
      'type' => 'string',
      'length' => '10',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'girl_name' => 
    array (
      'name' => 'girl_name',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '新娘姓名',
      'type' => 'string',
      'length' => '10',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'boy_tel' => 
    array (
      'name' => 'boy_tel',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '新郎电话',
      'type' => 'string',
      'length' => '11',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'girl_tel' => 
    array (
      'name' => 'girl_tel',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '新娘电话',
      'type' => 'string',
      'length' => '11',
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'boy_birth' => 
    array (
      'name' => 'boy_birth',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '新郎生日',
      'type' => 'datetime',
      'length' => 19,
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'girl_birth' => 
    array (
      'name' => 'girl_birth',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '新娘生日',
      'type' => 'datetime',
      'length' => 19,
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'wedding_time' => 
    array (
      'name' => 'wedding_time',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '婚礼时间',
      'type' => 'datetime',
      'length' => 11,
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'wedding_address' => 
    array (
      'name' => 'wedding_address',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '婚礼地址',
      'type' => 'string',
      'length' => '100',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'traffic_way' => 
    array (
      'name' => 'traffic_way',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '交通方式',
      'type' => 'string',
      'length' => '300',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'invit_letter' => 
    array (
      'name' => 'invit_letter',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '邀请语',
      'type' => 'text',
      'length' => 0,
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'thanks_letter' => 
    array (
      'name' => 'thanks_letter',
      'null' => 'YES',
      'key' => '',
      'default' => NULL,
      'comment' => '感谢语',
      'type' => 'text',
      'length' => 0,
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 1,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'is_delete' => 
    array (
      'name' => 'is_delete',
      'null' => 'YES',
      'key' => '',
      'default' => '0',
      'comment' => '是否已删除',
      'type' => 'boolean',
      'length' => '1',
      'in_list' => 0,
      'in_show' => 1,
      'in_store' => 0,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
    'created_at' => 
    array (
      'name' => 'created_at',
      'null' => 'YES',
      'key' => '',
      'default' => 'CURRENT_TIMESTAMP',
      'comment' => '创建时间',
      'type' => 'datetime',
      'length' => 11,
      'in_list' => 1,
      'in_show' => 1,
      'in_store' => 0,
      'in_search' => 0,
      'in_filter' => 1,
      'in_sort' => 1,
    ),
  ),
);